<template>
	<div class="six">
	  {{this.$store.state.a.na}}---{{this.$store.getters.doarra}}
	  
	  {{na}}----{{doarra}}
	  
	  {{this.$store.state.b.nb}}
	  <button @click="add">点击按钮</button>
	</div>
</template>


<script>

import {mapState,mapGetters,mapMutations} from "vuex"

export default {
  name: 'Six',
  data(){
	  return{
	
	  }
  },
  computed:{
	  na(){
		  return this.$store.state.a.na
	  },
	  doarra(){
		  return this.$store.getters.doarra
	  }
  },
  methods:{
	  add(){
		  this.$store.commit("add")
	  }
  }
}
</script>

<style>
</style>